import java.io.*;


public class Validar {
	
	public static String dato()
	{
	String sdato="";
	try
	{
	InputStreamReader isr = new InputStreamReader (System.in);
	BufferedReader flujo =new BufferedReader (isr);
	sdato=flujo.readLine();
	}
	catch (IOException e)
	{
	System.err.println("Error"+ e.getMessage());
	}
	return sdato;
	}
	public static int datoInt()
	{
	try
	{
	return Integer.parseInt (dato());
	}
	catch(NumberFormatException e)
	{
	return Integer.MIN_VALUE;
	}
	}
	public static float datoFloat()
	{
	try
	{
	Float f = new Float(dato());
	return f.floatValue();
	}
	catch(NumberFormatException e)
	{
	return Float.NaN; // No es un Número; valor float.
	}
	}
	}





	
	


